﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace UCenter.ContactFromLiveID
{
    [XmlNodeMapping(XmlNodeName = "Contacts/Contact")]
    [DataContract]
    public class LiveContract
    {
        /// <summary>
        /// Gets or sets the ID.
        /// </summary>
        /// <value>The ID.</value>
        [XmlNodeMapping(XmlNodeName = "ID")]
        [DataMember]
        public string ID { get; set; }

        /// <summary>
        /// Gets or sets the windows live ID.
        /// </summary>
        /// <value>The windows live ID.</value>
        [XmlNodeMapping(XmlNodeName = "WindowsLiveID")]
        [DataMember]
        public string WindowsLiveID { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [auto update enabled].
        /// </summary>
        /// <value><c>true</c> if [auto update enabled]; otherwise, <c>false</c>.</value>
        [XmlNodeMapping(XmlNodeName = "AutoUpdateEnabled")]
        [DataMember]
        public bool AutoUpdateEnabled { get; set; }

        /// <summary>
        /// Gets or sets the last changed.
        /// </summary>
        /// <value>The last changed.</value>
        [XmlNodeMapping(XmlNodeName = "LastChanged")]
        public DateTime LastChanged { get; set; }

        /// <summary>
        /// Gets or sets the profiles.
        /// </summary>
        /// <value>The profiles.</value>
        [DataMember]
        public Personal Profiles { get; set; }

        /// <summary>
        /// Gets or sets the emails.
        /// </summary>
        /// <value>The emails.</value>
        [DataMember]
        public Email Emails { get; set; }

        /// <summary>
        /// Gets or sets the group ID.
        /// </summary>
        /// <value>The group ID.</value>
        [DataMember]
        public string GroupID { get; set; }
    }
}
